<template>
    <Layout style="width:100%;height:100%;">
        <Sider hide-trigger>
            <Menu :theme="theme2" active-name="home" @on-select="linlTo" style="width:200px;">
                <MenuItem name="home">系统首页</MenuItem>
            </Menu>
        </Sider>
        <Content>
            <router-view></router-view>
        </Content>
    </Layout>
</template>
<script>
import { mapGetters, mapMutations, mapActions } from "vuex";
export default {
  data() {
    return {
      theme2: "light"
    };
  },
  computed: {
    
  },
  methods: {
    ...mapActions(["checkTIndex"]),
    // 点击导航菜单跳转路由
    linlTo(name) {
      var that = this;
      that.$router.push(`/homeMenu/${name}`);
    }
  },
  created() {
    this.$store.dispatch("checkTIndex","/homeMenu")
  }
};
</script>
